package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.math.BigDecimal;

@Data
@Builder
public class LiveGoodsSelectApiResponse {
    @ApiModelProperty(value = "商品ID", dataType = "LiveGoodsSelectApiResponse.Goods")
    private PageResponse2<Goods> goodsList;

    @ApiModel("LiveGoodsSelectApiResponse.Goods")
    @Data
    @Builder
    public static class Goods {
        @ApiModelProperty("商品ID")
        private Integer goodsId;
        @ApiModelProperty("商品图片")
        private String photo;
        @ApiModelProperty("商品名称")
        private String name;
        @ApiModelProperty("商品价格")
        private BigDecimal price;
        @ApiModelProperty("是否已选:-1不可选 0未选 1已选")
        private Integer selected;
    }
}
